package lovo01.lesson04;

/**
 * 农民类
 */
public class Farmer extends Role implements Mine,Attack,Treat{

    public Farmer() {
    }

    public Farmer(String name, int level) {
        super(name, level);
    }

    @Override
    public void attack() {
        System.out.println("会攻击");
    }

    @Override
    public void mine() {
        System.out.println("会采矿");
    }

    @Override
    void selfIntroduce() {
        System.out.println("我是:" + getName() + "，目前等级是："
                + getLevel() + "级" + "，是一位农民");
    }

    @Override
    public void treat() {
        System.out.println("会治疗");
    }
}
